package com.yc.tank.util;

import java.io.IOException;
import java.util.Properties;

public class PropertiesTools {

	static Properties pro = new Properties();
	
	static {
		try {
			pro.load(PropertiesTools.class.getClassLoader().getResourceAsStream("tank.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getString(String key) {
		return pro.getProperty(key);
	}
	
	public static Integer getInt(String key) {
		return Integer.parseInt(pro.getProperty(key));
	}
	
}
